using System.ComponentModel.DataAnnotations.Schema;
namespace ShopForWeb.Models
{
  /// <summary>
  /// 订单详情
  /// </summary>
  [Table("T_OrserDetails")]
  public class OrderDetails
  {

    public string OrderID { get; set; } = "";

    public int CommodityID { get; set; }

    public int Sales { get; set; }
    [Column(TypeName = "decimal(18,2)")]
    public decimal Price { get; set; }
    [ForeignKey("CommodityID")]
    public virtual Commodity? Commodity { get; set; }
    [ForeignKey("OrderID")]
    public virtual Order? Order { get; set; }
  }
}
